import org.tvolkov.mycompany.Company;
import org.tvolkov.mycompany.Division;
import org.tvolkov.mycompany.Project;
import org.tvolkov.mycompany.Employee;
import java.text.DateFormat;

class BootStrap {

    def init = {
//		new Company(name: "MERANN", address: "Rodionova 23", phoneNumber: "12345", taxNumber: "123-456-768")
//		.addToDivisions(new Division(name: "BU MA", phoneNumber: "543321")
//							.addToProjects(new Project(name: "Test", customer: "RIM", deadline: DateFormat.getDateInstance().parse("22.12.12"))
//								.addToEmployees(new Employee(name: "john doe",
//															 hireDate: new Date(),
//															 skills: "c++",
//															 phone: "123321",
//															 email: "mail@domain.com",
//															 place: 2))))
//		.addToDivisions(new Division(name: "BU WAC", phoneNumber: "123456")
//							.addToProjects(new Project(name: "Tek", customer: "tektronix", deadline: DateFormat.getDateInstance().parse("21.12.12"))
//								.addToEmployees(new Employee(name: "tom", 
//															 hireDate: new Date(),
//															 skills: "java",
//															 phone: "55512345", 
//															 email:"tom@domain.com",
//															 place: 1
//															 )))).save()
    }
    def destroy = {
    }
}
